package com.college_career_system.dao;

import com.college_career_system.pojo.po.CountSalary;
import com.college_career_system.pojo.po.School;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.college_career_system.pojo.po.UserEnrollment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Empty
 * @since 2022-12-06
 */
@Mapper
public interface SchoolMapper extends BaseMapper<School> {

    List<UserEnrollment> selectAllUserEnterprise(String school, String year, int flag);

    List<UserEnrollment> selectAllUserEnterpriseByProfession(String school, String profession, String year, int flag);

    CountSalary getAllSalary(String school, String year);

    CountSalary getAllSalary2(String school, String profession, String year);

    List<String> getAllYear(String school);

    int updatePassWordById(String schoolId, String pwd);
}
